package com.gking.aiService.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 系统日志
 */
@Data
@TableName("sy_logs_record")
public class SyLogsRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId
    private String id;

    //访问者用户id
    @TableField(value = "accessUserId")
    private String accessUserId;

    //访问路径
    @TableField(value = "accessPath")
    private String accessPath;

    //接口请求体
    @TableField(value = "requestBody")
    private String requestBody;

    //访问状态
    @TableField(value = "accessStatus")
    private String accessStatus;

    //请求返回信息
    @TableField(value = "responseMessage")
    private String responseMessage;

    //请求返回状态
    @TableField(value = "responseStatus")
    private Integer responseStatus;

    //响应消耗时间
    @TableField(value = "consumeTime")
    private String consumeTime;

    //创建时间
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //ip地址
    @TableField(value = "ipAddress")
    private String ipAddress;

    //设备信息
    @TableField(value = "equipmentInfo")
    private String equipmentInfo;

    //是否删除
    @TableField(value = "isDelete")
    private Integer isDelete;
}